diff --git a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CounterRendering_viewLineFastInputDialog.xml b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CounterRendering_viewLineFastInputDialog.xml index c26bdc001f04fae153766f9060ba7b817f78930d..3ed8df3140e67c7abdecf1807918ce460a5ba9f7 100644 --- a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CounterRendering_viewLineFastInputDialog.xml +++ b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CounterRendering_viewLineFastInputDialog.xml @@ -83,8 +83,11 @@ if currency != context.Baobab_getPortalReferenceCurrencyID():\n emission_letter = [\'not_defined\']\n variation = [\'not_defined\']\n else:\n - cash_status = None\n - emission_letter = None\n + cash_status = [\'to_sort\', \'new_emitted\', \'valid\', \'not_defined\', \'mutilated\', \'error\']\n + site_codification = context.Baobab_getVaultSite(context.getSourceValue().getRelativeUrl()).getCodification()\n + emission_letter = [\'not_defined\', ]\n + if site_codification not in (\'\', None):\n + emission_letter.append(site_codification[0].lower())\n variation = context.Baobab_getResourceVintageList(banknote=1, coin=1)\n \n cash_detail_dict = {\'line_portal_type\' : \'Cash Delivery Line\'\n @@ -158,6 +161,8 @@ return context.CashDelivery_generateCashDetailInputDialog(listbox = None\n <string>cash_status</string> <string>emission_letter</string> <string>variation</string> + <string>site_codification</string> + <string>_getitem_</string> <string>False</string> <string>cash_detail_dict</string> </tuple> diff --git a/bt5/erp5_banking_cash/bt/revision b/bt5/erp5_banking_cash/bt/revision index e3e1916cf59ce0dff1e15c2e837a89ff67d9e40d..66321c084ca9a642e8b308c01850cfd0351b48d1 100644 --- a/bt5/erp5_banking_cash/bt/revision +++ b/bt5/erp5_banking_cash/bt/revision @@ -1 +1 @@ -187 \ No newline at end of file +189 \ No newline at end of file