lib/uob/payroll/txt_file/header.rb in uob-payroll-1.0.3 vs lib/uob/payroll/txt_file/header.rb in uob-payroll-1.0.4
- old
+ new
@@ -18,11 +18,11 @@
text :originating_account_number, 50..83, just: :left
text :originating_account_name, 84..223, just: :left
text :formatted_creation_date, 224..231
text :formatted_value_date, 232..239
text :ultimate_originating_customer, 240..379, just: :left, value: ' '
- text :bulk_customer_reference, 380..395, just: :left, value: ' '
+ text :bulk_customer_reference, 380..395, just: :left
text :software_label, 396..405, value: 'PH', just: :left
spaces 406..615
attr_reader :company_name, :account_number, :branch_code, :creation_date, :value_date
@@ -61,9 +61,13 @@
creation_date.strftime '%Y%m%d'
end
def formatted_value_date
value_date.strftime '%Y%m%d'
+ end
+
+ def bulk_customer_reference
+ "PAYROLL#{creation_date.strftime('%d%m')}"
end
end
end
end